<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.back']}" action="/jsf/relationstiers/listRelationsTierss.xhtml"/>
		
			<p:panel header="#{relationstiersmsgs['relationstiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{relationstiersmsgs['relationstiers.rlttiersparent.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.rltTiersParent}"/>
						<h:outputText value="#{relationstiersmsgs['relationstiers.rlttiersfils.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.rltTiersFils}"/>
						<h:outputText value="#{relationstiersmsgs['relationstiers.rltrelation.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.rltRelation}"/>
						<h:outputText value="#{relationstiersmsgs['relationstiers.rltsens.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.rltSens}"/>
						<h:outputText value="#{relationstiersmsgs['relationstiers.rltdatedebut.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.rltDateDebut}"  converter="dateConverterForCalendar" />
						<h:outputText value="#{relationstiersmsgs['relationstiers.rltdatefin.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.rltDateFin}"  converter="dateConverterForCalendar" />
				</h:panelGrid>
			</p:panel>

			<p:panel header="#{relationstiersmsgs['tiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="tiersByRltTiersFils" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils != null}" >
					<h:outputText value="#{relationstiersmsgs['tiers.tietiers.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieTiers}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tieidentclient.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieIdentClient}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietypetiers.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieTypeTiers}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tielibexterne.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieLibExterne}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tienationalite.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieNationalite}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietelfix.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieTelFix}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietelbureau.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieTelBureau}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietelportable.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieTelPortable}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tiefax.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieFax}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tieemail.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieEMail}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tiedatecreation.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieDateCreation}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{relationstiersmsgs['tiers.tieusercreation.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieUserCreation}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.edit']}" action="#{RelationsTiersComponent.editRelationsTiersTiersByRltTiersFils(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation, RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieTiers)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.delete']}" action="#{RelationsTiersComponent.confirmDeleteRelationsTiersTiersByRltTiersFils(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation, RelationsTiersComponent.relationstiers.tiersByRltTiersFils.tieTiers)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.tiersByRltTiersFils == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.new']}" action="#{RelationsTiersComponent.newRelationsTiersTiersByRltTiersFils(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation)}"/>
				</h:panelGrid>
			</p:panel>
			<p:panel header="#{relationstiersmsgs['relations.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="relations" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.relations != null}" >
					<h:outputText value="#{relationstiersmsgs['relations.relrelation.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.relations.relRelation}"/>
					<h:outputText value="#{relationstiersmsgs['relations.rellibelledesc.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.relations.relLibelleDesc}"/>
					<h:outputText value="#{relationstiersmsgs['relations.rellibelleasc.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.relations.relLibelleAsc}"/>
					<h:outputText value="#{relationstiersmsgs['relations.reltype.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.relations.relType}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.relations != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.edit']}" action="#{RelationsTiersComponent.editRelationsTiersRelations(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation, RelationsTiersComponent.relationstiers.relations.relRelation)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.delete']}" action="#{RelationsTiersComponent.confirmDeleteRelationsTiersRelations(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation, RelationsTiersComponent.relationstiers.relations.relRelation)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.relations == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.new']}" action="#{RelationsTiersComponent.newRelationsTiersRelations(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation)}"/>
				</h:panelGrid>
			</p:panel>
			<p:panel header="#{relationstiersmsgs['tiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="tiersByRltTiersParent" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent != null}" >
					<h:outputText value="#{relationstiersmsgs['tiers.tietiers.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieTiers}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tieidentclient.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieIdentClient}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietypetiers.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieTypeTiers}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tielibexterne.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieLibExterne}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tienationalite.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieNationalite}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietelfix.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieTelFix}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietelbureau.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieTelBureau}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tietelportable.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieTelPortable}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tiefax.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieFax}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tieemail.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieEMail}"/>
					<h:outputText value="#{relationstiersmsgs['tiers.tiedatecreation.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieDateCreation}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{relationstiersmsgs['tiers.tieusercreation.title']}:" />
							<h:outputText value="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieUserCreation}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.edit']}" action="#{RelationsTiersComponent.editRelationsTiersTiersByRltTiersParent(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation, RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieTiers)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.delete']}" action="#{RelationsTiersComponent.confirmDeleteRelationsTiersTiersByRltTiersParent(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation, RelationsTiersComponent.relationstiers.tiersByRltTiersParent.tieTiers)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{RelationsTiersComponent.relationstiers.tiersByRltTiersParent == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{relationstiersmsgs['navigation.new']}" action="#{RelationsTiersComponent.newRelationsTiersTiersByRltTiersParent(RelationsTiersComponent.relationstiers.rltTiersParent, RelationsTiersComponent.relationstiers.rltTiersFils, RelationsTiersComponent.relationstiers.rltRelation)}"/>
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>